<%--
  Created by IntelliJ IDEA.
  User: flying
  Date: 2022/5/5
  Time: 2:11 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script src="${pageContext.request.contextPath}/js/bootstrap.js"></script>
<html>
<head>
    <title>文件上传</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/upload" enctype="multipart/form-data" method="post">
    名字：<input type="text" name="name"><br>
<%--  name="upload"对应后端接收的方法形参  --%>
    文件：<input type="file" name="upload">
    <br>
    <input type="submit" value="提交">
</form>
</body>
</html>
